
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGColorBufferViewport.h>
#include <OpenSG/OSGColorBufferViewportBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGRenderAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ColorBufferViewport_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_ColorBufferViewport()
{
    scope* osg_ColorBufferViewportBase_scope = new scope(
    class_< osg::ColorBufferViewportBase, bases< osg::Viewport > , boost::noncopyable >("ColorBufferViewportBase", no_init)
//        .def_readonly("RedFieldMask", &osg::ColorBufferViewportBase::RedFieldMask)
//        .def_readonly("BlueFieldMask", &osg::ColorBufferViewportBase::BlueFieldMask)
//        .def_readonly("GreenFieldMask", &osg::ColorBufferViewportBase::GreenFieldMask)
//        .def_readonly("AlphaFieldMask", &osg::ColorBufferViewportBase::AlphaFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ColorBufferViewportBase::MTInfluenceMask)
        .def("getClassType", &osg::ColorBufferViewportBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ColorBufferViewportBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ColorBufferViewportBase::*)() )&osg::ColorBufferViewportBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ColorBufferViewportBase::*)() const)&osg::ColorBufferViewportBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ColorBufferViewportBase::getContainerSize)
        //.def("getRed", (bool& (osg::ColorBufferViewportBase::*)() )&osg::ColorBufferViewportBase::getRed, return_value_policy< copy_const_reference >())
        .def("getRed", (const bool& (osg::ColorBufferViewportBase::*)() const)&osg::ColorBufferViewportBase::getRed, return_value_policy< copy_const_reference >())
        //.def("getBlue", (bool& (osg::ColorBufferViewportBase::*)() )&osg::ColorBufferViewportBase::getBlue, return_value_policy< copy_const_reference >())
        .def("getBlue", (const bool& (osg::ColorBufferViewportBase::*)() const)&osg::ColorBufferViewportBase::getBlue, return_value_policy< copy_const_reference >())
        //.def("getGreen", (bool& (osg::ColorBufferViewportBase::*)() )&osg::ColorBufferViewportBase::getGreen, return_value_policy< copy_const_reference >())
        .def("getGreen", (const bool& (osg::ColorBufferViewportBase::*)() const)&osg::ColorBufferViewportBase::getGreen, return_value_policy< copy_const_reference >())
        //.def("getAlpha", (bool& (osg::ColorBufferViewportBase::*)() )&osg::ColorBufferViewportBase::getAlpha, return_value_policy< copy_const_reference >())
        .def("getAlpha", (const bool& (osg::ColorBufferViewportBase::*)() const)&osg::ColorBufferViewportBase::getAlpha, return_value_policy< copy_const_reference >())
        .def("setRed", &osg::ColorBufferViewportBase::setRed)
        .def("setBlue", &osg::ColorBufferViewportBase::setBlue)
        .def("setGreen", &osg::ColorBufferViewportBase::setGreen)
        .def("setAlpha", &osg::ColorBufferViewportBase::setAlpha)
        .def("getBinSize", &osg::ColorBufferViewportBase::getBinSize)
        .def("copyToBin", &osg::ColorBufferViewportBase::copyToBin)
        .def("copyFromBin", &osg::ColorBufferViewportBase::copyFromBin)
        .def("create", &osg::ColorBufferViewportBase::create)
        .def("createEmpty", &osg::ColorBufferViewportBase::createEmpty)
        .def("shallowCopy", &osg::ColorBufferViewportBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("GreenFieldId") = (int)osg::ColorBufferViewportBase::GreenFieldId;
    scope().attr("AlphaFieldId") = (int)osg::ColorBufferViewportBase::AlphaFieldId;
    scope().attr("BlueFieldId") = (int)osg::ColorBufferViewportBase::BlueFieldId;
    scope().attr("RedFieldId") = (int)osg::ColorBufferViewportBase::RedFieldId;
    scope().attr("NextFieldId") = (int)osg::ColorBufferViewportBase::NextFieldId;

    delete osg_ColorBufferViewportBase_scope;

    class_< osg::ColorBufferViewport, bases< osg::ColorBufferViewportBase > , boost::noncopyable, osg::ColorBufferViewportRefPtr >("ColorBufferViewport", no_init)
        .def("changed", &osg::ColorBufferViewport::changed)
        .def("dump", &osg::ColorBufferViewport::dump, osg_ColorBufferViewport_dump_overloads_0_2())
        .def("draw", &osg::ColorBufferViewport::draw)
        .def("render", &osg::ColorBufferViewport::render)
    ;


    register_ptr_to_python<osg::ColorBufferViewportPtr>();
    implicitly_convertible<osg::ColorBufferViewportRefPtr, osg::ColorBufferViewportPtr>();
    implicitly_convertible<osg::ColorBufferViewportPtr, osg::ViewportPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::ColorBufferViewportPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ColorBufferViewportPtr>);
}

